package cn.jw.framework.test.swagger;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.jw.framework.test.swagger.model.Request1;
import io.swagger.v3.oas.annotations.tags.Tag;

/**
 * <p>
 * // TODO
 * </p>
 *
 * @author 王广帅
 * @since 2024/4/8 10:37
 **/
@Tag(name = "Swagger2接口")
@RestController
@RequestMapping("swagger2")
public class Swagger2Controller {

    @PostMapping("test1")
    public void request1(@RequestBody Request1 request1) {

    }

    @PostMapping("test2")
    public void request2(@RequestBody Request1 request1) {

    }

    public static void main(String[] args) {
        String str = "/error";
        System.out.println(str.split("/").length);
    }
}
